package com.hnja.hcg.netty;

import com.hnja.hcg.entity.hcg.TcpBean;

/**
 * Created by Administrator on 2018/4/4 0004.
 */

public interface INettyClient {
    void connect(String host, int port);
    void sendMessage(int mt, String msg, long delayed);
    void addDataReceiveListener(OnDataReceiveListener listener);
    interface OnDataReceiveListener{
        void onDataReceive(TcpBean tcpBean);
    }
    interface OnConnectStatusListener{
        void onDisconnect();
    }
}
